/**
 * @summary 频道请求模块
 */

import req from '@/utils/request';
import * as URL from '@/constants/api';

export function getChannelList() {
  return req({
    url: URL.CHANNEL_LIST,
  })
    .then(res => res.data.data.channels)
    .catch(() => []);
}
